# 打开注册表项并打印读取到的值  
$key = Get-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Control Panel\Desktop'  
$value = $key.ForegroundLockTimeout  
Write-Output $value